package com.tencent.iov.cowin.befsale.clue.service.clue;

import com.tencent.iov.cowin.befsale.clue.dao.http.crm.request.SyncCrmCreateClueRequest;
import com.tencent.iov.cowin.befsale.clue.dao.http.crm.request.SyncCrmUpdateClueRequest;
import com.tencent.iov.cowin.befsale.clue.dao.http.crm.response.SyncCrmCreateResponse;
import com.tencent.iov.cowin.befsale.clue.domain.clue.po.ClueInitial;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Describe: crm对接service
 * @author: add by zly
 * @created: 2022-01-23
 * @version: 1.0
 */

public interface CrmService {
    /**
     * add by zly
     * 2022-01-23
     * crm服务获取token
     * @return
     */
    String getCrmToken();

    /**
     * add by zly
     * 2022-01-22
     * 线索定时同步--定时同步crm新增
     * @param request
     * @return
     */
    SyncCrmCreateResponse clueInitialDataToCrm(SyncCrmCreateClueRequest request, ClueInitial c);

    /**
     * add by zly
     * 2022-01-23
     * 线索定时同步--定时同步crm修改
     * @param request
     * @return
     */
    SyncCrmCreateResponse clueInitialDataToCrmUpdate(@RequestBody SyncCrmUpdateClueRequest request);
}